{% extends "photologue/root.html" %}

{% block title %}{{ object.title }}{% endblock %}

{% block body_id %}gallery_page{% endblock %}

{% block content %}
<h1>{{ object.title }}</h1>
<br class="clear" />
<div class="desc">
    <h2>Originally published {{ object.date_added|date:"l, F jS, Y" }}</h2>
    <div>{{ object.description|linebreaks }}
    </div>
    <p class="nav"><a href="{% url pl-gallery-list 1 %}"
        >View all galleries</a></p>
</div>
<div class="gallery">
    {% for photo in object.public %}
    <div class="gallery-photo">
        <a href="{{ photo.get_absolute_url }}"><img src="{{ photo.medium.url }}" alt="{{ photo.title }}"/></a>
        <h2 class="title">{{ photo.title }}</h2>
    </div>
    {% endfor %}
</div>

{% endblock %}
